////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011-2012 www.iflytek.com. All Rights Reserved.
//  This software for customer relationship management system, developed by Iflytek_ZY team.
//  Software code and design for the team, copy rights reserved.
////////////////////////////////////////////////////////////////////////////////

package com.iflytek.ci.qams.controller;

import java.util.List;

import com.iflytek.ci.main.controller.BaseController;
import com.iflytek.ci.qams.domain.IssueType;
import com.iflytek.ci.qams.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 问题类型维护.
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 2012-11-08 11:42 AM
 * @since JDK 1.5
 */

@Controller
@RequestMapping("/type/**")
public class TypeController extends BaseController {
	/** 序列化ID */
	private static final long serialVersionUID = -962027806811435380L;

	/** 类型服务 */
	@Autowired
	private TypeService typeService;
	@RequestMapping(value = "/all", method = RequestMethod.GET)
	@ResponseBody
	public List<IssueType> issuetypes_all() {
		return typeService.all_types();
	}
}
